package com.why.service;

import com.github.pagehelper.PageInfo;
import com.why.pojo.Product;
import com.why.pojo.User;

import java.util.List;

public interface UserService {
    boolean deleteByPrimaryKey(Integer id);

    boolean insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    boolean updateByPrimaryKeySelective(User record);
    //判断用户是否存在
    User findUserByName(User user);
    //分页查询所有用户
    PageInfo<User> getPageInfo(Integer pageNum,Integer pageSize);
    //密码重置
    boolean updatePassword(Integer id);

    boolean updateImag(User user);
}
